package marmalius.quest;

public enum QuestID {
	NONE(0),
	TUTORIAL(1);
	
	
	private int value;
	
	QuestID(int value) {
		this.value = value;
	}
	
	public int getValue() { return this.value; }
	public boolean Compare(int value) { return this.value == value; }
	
	public static QuestID getQuest(int id) {
		QuestID[] quests = QuestID.values();
		for (int i = 0; i < quests.length; i++) {
			if (quests[i].Compare(id))
				return quests[i];
		}
		return QuestID.NONE;
	}
}
